//
//  ItemSelecteView.swift
//  ShiZhe
//
//  Created by 陈卿伟 on 16/9/1.
//  Copyright © 2016年 陈卿伟. All rights reserved.
//

import UIKit

class ItemSelecteView: UIView {
    var firstFrameTable:UITableView!
    var secondFrameTable:UITableView!
    var threeFrameTable:UITableView!
    override init(frame: CGRect) {
        firstFrameTable = UITableView()
        secondFrameTable = UITableView()
        threeFrameTable = UITableView()
        super.init(frame: frame)
        self.backgroundColor = BaseFunc.createCustomColor(222, b: 222, g: 222, a: 1)
        self.createFrameTableView()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
       
    //创建三个选择框
    func createFrameTableView(){
        firstFrameTable.frame = CGRect(x: 0, y: 0, width: 125*SCALEW, height: 378*SCALEH)
        firstFrameTable.rowHeight = 35
        firstFrameTable.separatorStyle = .None
        firstFrameTable.showsVerticalScrollIndicator = false
        firstFrameTable.showsHorizontalScrollIndicator = false
        firstFrameTable.backgroundColor = UIColor.clearColor()
        self.addSubview(firstFrameTable)
        
        secondFrameTable.frame = CGRect(x: 125*SCALEW, y: 0, width: 125*SCALEW, height: 378*SCALEH)
        secondFrameTable.rowHeight = 35
        secondFrameTable.separatorStyle = .None
        secondFrameTable.showsVerticalScrollIndicator = false
        secondFrameTable.showsHorizontalScrollIndicator = false
        secondFrameTable.backgroundColor = UIColor.clearColor()
        self.addSubview(secondFrameTable)
        
        threeFrameTable.frame = CGRect(x: 250*SCALEW, y: 0, width: 125*SCALEW, height: 378*SCALEH)
        threeFrameTable.rowHeight = 35
        threeFrameTable.separatorStyle = .None
        threeFrameTable.showsVerticalScrollIndicator = false
        threeFrameTable.showsHorizontalScrollIndicator = false
        threeFrameTable.backgroundColor = UIColor.clearColor()
        self.addSubview(threeFrameTable)
    }
    
}
